package com.example.echoewish.econstant;

import android.net.Uri;

//采用单例模式
//保证多线程下的内存可见性（相关bug登录后有时候ui线程无法找到消息）
public class UserInfo {
    public volatile Boolean IsLogin=false;
    public volatile Integer UserId=-1;
    public volatile String account;
    public volatile String password;
    public volatile String name;
    public volatile Integer sex;
    public volatile Integer grade;
    public volatile String campus;
    public volatile String headImage;
    public volatile Uri getImageUri=null;
    private static  UserInfo instance=new UserInfo();

    public static UserInfo getInstance()
    {
        return instance;
    }
}
